var gutils = {
    /**
     * 获取URL的paramter value
     * */
    getParameter: function(name) {
        var url = location.href;
        var start = url.indexOf('?') + 1;
        if (start === 0) {
            return '';
        }
        var value = '';
        var queryString = url.substring(start);
        var paraNames = queryString.split('&');
        for (var i = 0; i < paraNames.length; i++) {
            var str = paraNames[i];
            start = str.indexOf('=');
            var parameterName = str;
            if (start !== -1) {
                parameterName = str.substring(0, start);
            }

            if (name === parameterName) {
                start = str.indexOf('=');
                if (start !== -1) {
                    value = str.substring(start + 1);
                }
            }
        }
        return value;
    }
};